package com.atguigu.spzx.service.order.service;

import com.atguigu.spzx.model.dto.h5.OrderSubmitDto;
import com.atguigu.spzx.model.entity.h5.OrderInfo;
import com.atguigu.spzx.model.vo.h5.TradeVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

/**
 * title:
 * author: zgl
 * date: 2024/1/18
 * description：
 */
public interface OrderService extends IService<OrderInfo> {
    TradeVo  trade();

    Long submitOrder(OrderSubmitDto submitDto);

    TradeVo buy(Long skuId);

    PageInfo<OrderInfo> getOrderList(Integer page, Integer limit, Integer orderStatus);

    void updateOrderStatusPayed(String orderNo, Integer orderStatus);
}
